﻿using System;

namespace Kingdee.WeksErp.Models.Orders
{
    /// <summary>
    /// 淘宝订单，物流报价表| IC_Web2ERPOrders
    /// </summary>
    public class TbOrder
    {
        public int ID { get; set; }
        /// <summary>
        /// 订单Id |FID
        /// </summary>
        public int FOrderId { get; set; }

        public int FIndex { get; set; }

        /// <summary>
        /// 订单编号 |FOrderID
        /// </summary>
        public string FOrderNo { get; set; }

        /// <summary>
        /// 门店：订单对应的网店名称，物流公司账号不可见|IC_WebshopToStorage.FWebshopName
        /// </summary>
        public string FStoreName { get; set; }

        /// <summary>
        ///会员名称： 客户的网名，淘宝的旺旺名;物流公司账号不可见|FBuyerNick
        /// </summary>
        public string FVipName { get; set; }

        /// <summary>
        /// 姓名：订单的收货人，在确认配送物流公司前，物流公司账号不可见|FConsignee
        /// </summary>
        public string FShrName { get; set; }

        /// <summary>
        /// 电话：订货的收货人电话，在确认配送物流公司前，物流公司账号不可见|FMobile
        /// </summary>

        public string FShrTel { get; set; }

        /// <summary>
        /// 省|t_SubMessage.FID
        /// </summary>
        public int FDeliveryProvince { get; set; }

        /// <summary>
        /// 市|t_SubMessage.FID
        /// </summary>
        public int FDeliveryCity { get; set; }

        /// <summary>
        /// 区县|t_SubMessage.FID
        /// </summary>
        public int FDeliveryDistrict { get; set; }

        /// <summary>
        /// 联系地址：订单的收货地址|  FDeliveryAddress
        /// </summary>
        public string FAddress { get; set; }

        /// <summary>
        /// 产品名称：订单物料名称| IC_Web2ERPOrdersEntry.FItemID
        /// </summary>

        public string FItemName { get; set; }


        /// <summary>
        /// 规格型号：物料规格型号| 无 FModel
        /// </summary>
        public string FGgModel { get; set; }

        /// <summary>
        /// 数量：订单数量 FQuantity
        /// </summary>
        public int FQty { get; set; }

        /// <summary>
        /// 重量：物料的重量，物料的重量*订单数量  FGrossWeight
        /// </summary>
        public float FWeight { get; set; }

        /// <summary>
        /// 体积：物料的体积*订单数量 FSize
        /// </summary>

        public string FVolume { get; set; }

        /// <summary>
        /// 保价金额：订单金额*保价系数 | FAfterDiscountAmount*
        /// </summary>
        public float FBjPrice { get; set; }

        /// <summary>
        /// 有无电梯，订单上的字段信息“有无电梯”（自定义字段）
        /// </summary>
        public string FDt { get; set; }

        /// <summary>
        /// 物流公司:默认当前登录用户所对应的物流公司
        /// </summary>
        public int? FSupplierId { get; set; }

        /// <summary>
        /// 运费（入户）
        /// </summary>
        public decimal? TranspPrice1 { get; set; }

        /// <summary>
        /// 运费（不入户）
        /// </summary>
        public decimal? TranspPrice2 { get; set; }
        public DateTime CreationTime { get; set; }

        public OrderStatus Status { get; set; }

        /// <summary>
        /// 总重量
        /// </summary>
        public float FWeightTotal { get; set; }


        public string FTranspBillNo { get; set; }
    }

    public enum OrderStatus
    {
        Checked,//已审核
        Dispathed,//已分配
        Confirmed,//已确认
        Transport,//已发货
        Received//客户已收货
    }
}
